<%-- 
    Document   : agregarPelicula
    Created on : 14-dic-2011, 0:09:03
    Author     : Administrador
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Agregar pelicula</title>
    </head>
    <body>
        <div id="bodydiv">
            <span style="color: #0395CC; margin-top: 20px; font-size: 20pt; font-family: Arial;"><b>Agregar película</b></span>
            <hr />
            <br />
            <form action="agregarPelicula" id="form">
                <table border="0">
                    <tr height="50">
                        <td></td>
                        <td>Nombre</td>
                        <td><input type="text" name="nombre" value="" style="width: 150px; padding: 3px" maxlength="44" class="required"/></td>
                        <td></td>
                    </tr>
                    <tr height="50">
                        <td></td>
                        <td>Descripcion</td>
                        <td><input type="text" name="descripcion" value="" style="width: 150px; padding: 3px" maxlength="195" class="required"/></td>
                        <td></td>
                    </tr>
                    <tr height="50">
                        <td></td>
                        <td>Edad apta a partir de</td>
                        <td><input type="text" name="edad" value="" style="width: 150px; padding: 3px" maxlength="2" class="required number"/></td>
                        <td></td>
                    </tr>
                    <tr height="50">
                        <td></td>
                        <td>Fecha Estreno</td>
                        <td><input type="text" name="fecha" id="fecha" value="" style="width: 150px; padding: 3px"  class="required dateFormat"/></td>
                        <td></td>
                    </tr>
                    <tr height="50">
                        <td></td>
                        <td>Proyeccion</td>
                        <td>
                            <select name="tipoProyeccion" style="width: 150px; padding: 3px" class="required">
                                <option>proyeccion2D</option>
                                <option>proyeccion3D</option>
                            </select>
                        </td>
                        <td></td>
                    </tr>
                    <tr  height="50">
                        <td></td>
                        <td>Idioma</td>
                        <td>
                            <table>
                                <tr>
                                    <td>inglés</td>
                                    <td><input type="radio" name="idioma" value="ingles" checked="checked" /></td>
                                    <td>español</td>
                                    <td><input type="radio" name="idioma" value="español" /></td>
                                    <td></td>
                                </tr>
                            </table>
                        </td>
                        <td></td>
                    </tr>
                    <tr height="50">
                        <td></td>
                        <td>Director</td>
                        <td><input type="text" name="director" value="" style="width: 150px; padding: 3px" maxlength="44" class="required"/></td>
                        <td></td>
                    </tr>
                    <tr height="50">
                        <td></td>
                        <td>Actores</td>
                        <td><input type="text" name="actores" value="" style="width: 150px; padding: 3px" maxlength="495" class="required"/></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td>&nbsp
                            <c:if test="${not empty requestScope.error}">
                                <font color="red">${requestScope.error}</font>
                                <c:remove scope="request" var="error" /> 
                            </c:if>
                        </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td><input type="submit" value="Agregar" style="width: 150px; padding: 3px"/></td>
                        <td></td>
                    </tr>
                </table>
            </form>
        </div>

        <jsp:include page="index.jsp" />

        <script type="text/javascript">
            $(document).ready(function(){
               
                $("#fecha").datepicker({ dateFormat: 'dd/mm/yy' });
            
                $("#form").validate();
            })
        </script>
    </body>
</html>
